<!doctype html public "-//w3c//dtd html 4.0 transitional//en" >
<html>
<head>
<meta charset="UTF-8">
<title>电子商务数据上报系统</title>
<link href="../back/login.css" type="text/css" rel="stylesheet" rev="stylesheet" />
<script src="js/jquery.min.js"></script>
</head>
<body class="denglu02">
<div class="dl">
		<div class="biaoti"></div>
		<div class="log">
			<ul class="deng02">
				<form id="command" style="padding-left:168px;" action="chklogin.php" method="post">
					<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr><td><img src="images/login_top.jpg" width="536" height="62"></td></tr>
					<tr><td align="center">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr><td align="center">
								<table width="100%" height="100px;" border="0" align="center" cellpadding="0" cellspacing="0">
									<tr align="center">
										<td width="38%" height="38px;" align="right">站点编号：</td>
										<td width="62%" align="left" colspan="2">
											<input name="username" type="text" maxlength="10" onkeydown="fun_tab()" style="width:200px;"/>
										</td>
									</tr>
									<tr align="center">
										<td height="38px;" align="right">密码：</td>
										<td align="left" colspan="2">
											<input name="userpwd" type="password" maxlength="15" onkeydown="fun_tab()" style="width:200px;"/>
										</td>
									</tr>
									<tr align="center">
										<td height="38px;" align="right">验证码：</td>
										<td align="left" valign="middle">
											<!--<input name="validate" type="text" onkeydown="fun_tab()" style="width:105px;"/>-->
											<!--<img alt="validate" src="qiant-top.jpg" style="width:70px;height:20px;"/>-->
											<input type="text" id="validate" name="validate" maxlength="6" onkeydown="fun_tab()" style="width:105px;font-size:12px;"/>
											<img id="verify" title="点击换验证码" onclick="this.src='../back/verify.php?'+Math.random();" src="../back/verify.php" style="vertical-align:middle;border:0px;"/>
										</td>
									</tr>
								</table>
								<input id="submitbtn" type="button" value="登录" onclick="loginSys()" class="btn-login02"/>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="reset" value="取消" class="btn-login02"/>
							</td></tr>
						</table>
					</td></tr>
				</table>
				</form>
			</ul>
		</div>
	</div>
</body>
<script type="text/JavaScript">
<!--
function fun_tab(){
    if (event.keyCode==13){
        event.keyCode=9;
    }
    if(event.keyCode==13&&event.srcElement.name=='validate'){
    	loginSys();
    }
}
function loginSys() {
	var userName = $("input[name=username]");
	var userPwd = $("input[name=userpwd]");
	var validate = $("input[name=validate]");
	if($.trim(userName.val()).length<=0){alert("用户名不允许为空");userName.focus();return;}
	if($.trim(userPwd.val()).length<=0){alert("密码不允许为空");userPwd.focus();return;}
	if($.trim(validate.val()).length<=0){alert("验证码不允许为空");validate.focus();return;}
	$("#command").submit();
	$('#submitbtn').attr("disabled","true");
}

$(document).ready(function(){
	$("input[name=userName]").focus();
	newValidate();
});
//-->
</script>
</html>